Skip to content

feat(deps): bump i18next-http-middleware from 3.9.2 to 3.9.6#2054

Merged
rhahao merged 1 commit intomainfrom
dependabot/npm_and_yarn/main/i18next-http-middleware-3.9.3
May 11, 2026
Merged

feat(deps): bump i18next-http-middleware from 3.9.2 to 3.9.6#2054
rhahao merged 1 commit intomainfrom
dependabot/npm_and_yarn/main/i18next-http-middleware-3.9.3

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 21, 2026

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Bumps i18next-http-middleware from 3.9.2 to 3.9.6.

Changelog

Sourced from i18next-http-middleware's changelog.

v3.9.6

  • Fix cookie header being overwritten instead of appended #126

v3.9.5

  • fix: allow forward slashes in ns values so nested namespace names (mapping to subfolder locale layouts such as public/locales/en/a/b.json on fs-backend, /locales/en/a/b.json on http-backend) are no longer dropped by getResourcesHandler. 3.9.3's security fix applied the same strict identifier check to both lng and ns via utils.isSafeIdentifier, which was correct for lng (no BCP-47 shape contains /) but over-strict for ns — nested namespaces containing / were never officially supported, but the behaviour fell out of the implicit string-substitution semantics of the backend loadPath and is common enough in the wild to be worth accommodating. isSafeIdentifier is now split into isSafeLangIdentifier (strict — still rejects /) and isSafeNsIdentifier (loose — allows / but still rejects .., \, control chars, prototype keys, and oversized inputs). isSafeIdentifier is kept as a backwards-compatible alias for the strict check. The 3.9.3 security fix remains in force for every concrete attack pattern from the original advisory.

v3.9.4

  • Add Set-Cookie header to response in Fresh plugin so language preference persists across reloads/new tabs #125

v3.9.3

Security release — all issues found via an internal audit. See published GHSA advisories GHSA-5fgg-jcpf-8jjw and GHSA-c3h8-g69v-pjrg.

  • security: guard utils.setPath against prototype pollution via crafted lng/ns in getResourcesHandler (GHSA-5fgg-jcpf-8jjw)
  • security: sanitise Content-Language response header to prevent CRLF injection / unhandled ERR_INVALID_CHAR crash via unsanitised language codes (GHSA-c3h8-g69v-pjrg)
  • security: skip inherited/prototype-polluting keys (__proto__, constructor, prototype) in missingKeyHandler request body (GHSA-5fgg-jcpf-8jjw)
  • security: filter unsafe lng/ns values in getResourcesHandler (reject path-traversal, path separators, control characters, prototype keys, over-long inputs) to prevent path traversal / SSRF via the backend connector and unbounded growth of the shared i18next.options.ns array. Any legitimate language code shape is still accepted — i18next permits arbitrary codes (FAQ) (GHSA-5fgg-jcpf-8jjw)
  • security: hasXSS regex now catches event handlers in any attribute position (previously only matched when the handler was the first attribute; e.g. <input autofocus onfocus=…> bypassed the filter)
  • security: automatically set the Secure flag on the language cookie when cookieSameSite: 'none' — browsers reject SameSite=None without Secure
  • chore: ignore .env* and *.pem/*.key files in .gitignore
Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 21, 2026
@socket-security
Copy link
Copy Markdown

socket-security Bot commented Apr 21, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedi18next-http-middleware@​3.9.2 ⏵ 3.9.699100 +3110093 +8100

View full report

Bumps [i18next-http-middleware](https://github.com/i18next/i18next-http-middleware) from 3.9.2 to 3.9.6.
- [Changelog](https://github.com/i18next/i18next-http-middleware/blob/master/CHANGELOG.md)
- [Commits](i18next/i18next-http-middleware@v3.9.2...v3.9.6)

---
updated-dependencies:
- dependency-name: i18next-http-middleware
  dependency-version: 3.9.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title feat(deps): bump i18next-http-middleware from 3.9.2 to 3.9.3 feat(deps): bump i18next-http-middleware from 3.9.2 to 3.9.6 May 11, 2026
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/main/i18next-http-middleware-3.9.3 branch from b953309 to 49f7af8 Compare May 11, 2026 09:36
@sonarqubecloud
Copy link
Copy Markdown

@rhahao rhahao merged commit 4247ea8 into main May 11, 2026
11 checks passed
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/main/i18next-http-middleware-3.9.3 branch May 11, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant